package com.dcm.groupbuy.service;

import com.dcm.common.vo.CommonResponse;
import com.dcm.groupbuy.bo.OrderBo;
import com.dcm.groupbuy.entity.GroupOrderEntity;
import com.github.pagehelper.PageInfo;

/**
 * @author 牛浩
 */
public interface OrderBoService {
    /**
     * 开始拼团
     * @param id
     * @param name
     * @return
     */
    CommonResponse startGroup(Long id, String name);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    OrderBo findById(Long id);

    /**
     * 单独购买
     * @param note
     * @param memberUsername
     */
    void mySeIf(String note,String memberUsername);

    /**
     * 分页
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageInfo<OrderBo> findPage(Integer currentPage, Integer pageSize);
}
